<div class="view">

	<?php if ($data->extension): ?>
		<div class="column">
			<?php
			$src = $data->coverThumbnailUrl;
			$alt = $data->title;
			$htmlOptions = array();
			$text = CHtml::image($src, $alt, $htmlOptions);
			$url = $data->coverUrl;
			$htmlOptions = array(
				'rel'=>'prettyPhoto',
				'title'=>$data->manga->title . " $data->title",
			);
			echo CHtml::link($text, $url, $htmlOptions)
			?>
		</div>
	<?php endif; ?>

	<?php if ($this->route != 'manga/view'): ?>
		<b><?php echo CHtml::encode($data->getAttributeLabel('mangaId')); ?>:</b>
		<?php
		$text = CHtml::encode($data->manga->title);
		echo CHtml::link($text, array('manga/view', 'id'=>$data->mangaId));
		?>
		<br />
	<?php endif; ?>

	<b>
		<?php echo CHtml::encode($data->getAttributeLabel('humanSequence')); ?>:
	</b>
	<?php
	$text = CHtml::encode($data->humanSequence);
	echo CHtml::link($text, array('chapter/view', 'id'=>$data->id));
	?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</b>
	<?php
	$text = CHtml::encode($data->title);
	echo CHtml::link($text, array('chapter/view', 'id'=>$data->id));
	?>

	<div class="clear"></div>

</div>

<?php
EPrettyPhoto::register();
$script = '$("a[rel^=\'prettyPhoto\']").prettyPhoto();';
Yii::app()->clientScript->registerScript('prettyPhoto', $script)
?>